#!/bin/bash

rm -rdf docker/nginx/html/dist/

cd ruoyi-ui/

# 构建测试环境
#npm run build:stage

# 构建生产环境
npm run build:prod

cp dist/ ../docker/nginx/html/ -r

cd ../docker/nginx/

# login
sudo docker login --username=brucelee188 registry.cn-hangzhou.aliyuncs.com
# 71**Ab

docker build -t registry.cn-hangzhou.aliyuncs.com/neo_ruoyi/ruoyi-ui-arm:v1.0 -f dockerfile .

docker push registry.cn-hangzhou.aliyuncs.com/neo_ruoyi/ruoyi-ui-arm:v1.0
